package com.qianda.qdminiapp.dao.device;

import com.qianda.qdminiapp.domain.model.device.QqdDevice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 设备表 Mapper 接口
 * </p>
 *
 * @author cw
 * @since 2019-08-14
 */
public interface QqdDeviceDao extends BaseMapper<QqdDevice> {

    //减库存
    void deviceTowelCountMinusOne(@Param("deviceId") Long deviceId,@Param("count") Integer count,@Param("totalLength") Integer totalLength);

    //设备设为在线
    void setDeviceOnLine(Long id,Integer onlineStatus);

}
